<?php
session_start() ;

require_once("Views/PageView.php") ;
require_once("Controllers/MasterController.php") ;

// Require the files needed for the login.
// TODO find a way to do this automatically based on file-structure
require_once("Controllers/LoginController.php") ;
require_once("Models/LoginModel.php") ;
require_once("Views/LoginView.php") ;

// Require the files need for the file-upload
require_once("Controllers/FileController.php") ;
require_once("Models/FileModel.php") ;
require_once("Views/FileView.php") ;

$pageView = new PageView() ;
$masterController = new MasterController($pageView) ;

echo $masterController->doControll() ;

/* require_once("Controllers/LoginController.php") ;
require_once("Controllers/FileController.php") ;
require_once("Models/LoginModel.php") ;
require_once("Views/LoginView.php") ;

$lm = new LoginModel() ;
$lv = new LoginView($lm) ;

$lc = new LoginController($lv, $lm) ; 
// $fc = new FileController() ;

$body = $lc->DoControll() ;

$pageView->addStyleSheet("styles.css") ;
echo $pageView->getXHtml(array('body'=>$body, 'title'=>'1DV408')) ; */
